package com.celesea.auth.role.service;

import com.celesea.auth.role.entity.Role;
import com.celesea.auth.role.vo.RolePermissionVo;
import com.celesea.auth.role.vo.RoleVo;
import com.celesea.framework.service.BaseService;

import java.util.List;

/**
 * @author JackYuan
 * @create 2017-10-26 23:16
 */
public interface RoleService extends BaseService<Role> {

    List<Role> selectList();

    void disable(String id);

    void enable(String id);


    RoleVo insert(RoleVo entity);

    RoleVo update(RoleVo entity);

    @Override
    RoleVo selectById(String id);

    RolePermissionVo selectPermissions(String id);

    RolePermissionVo updatePermissions(RolePermissionVo rolePermissionVo);

}
